package com.android.kmlmrg.services.receivers;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class ApplicationIntentReceiver  extends BroadcastReceiver {

	public static String ERROR ="ERROR";
	
	public static String REQUEST_TIMEOUT="REQUEST_TIMEOUT";
	
	@Override
	public void onReceive(Context context, Intent pIntent) {
		if (pIntent.getAction().equalsIgnoreCase(REQUEST_TIMEOUT) ) {
			Toast.makeText(context,  pIntent.getAction(), Toast.LENGTH_SHORT).show();
		} else if (pIntent.getAction().equalsIgnoreCase(ERROR)){
			Toast.makeText(context,  pIntent.getAction(), Toast.LENGTH_SHORT).show();
		}
		
	}

}
